<template>
  <div @click="btn" class="my_div">
    <img
      src="https://scpic.chinaz.net/files/pic/pic9/202003/zzpic23514.jpg"
      alt=""
    />
    <p>这是一个孤独可怜的狗</p>
    <dogVlog></dogVlog>
  </div>
</template>

<script>
// 样式引入
import dogVlog from "./components/dogVlog.vue";
export default {
  // 注册组件
  components: {
    dogVlog,
  },
  data() {
    return {};
  },
};
</script>

<style>
.my_div {
  width: 200px;
  border: 1px solid black;
  text-align: center;
  float: left;
}

.my_div img {
  width: 100%;
  height: 200px;
}
</style>